#include <math.h>
class Solution
{
public:
    int bulbSwitch(int n)
    {
        return sqrt(n);
    }
};